<?php

require_once APPPATH . 'core/BaseDAO.php';

use models\M_valores_inscripcion;

class ValoresInscripcionDAO extends BaseDAO {

    function __construct() {
        parent::__construct();
    }
	
    public function getValorInscripcion(){
		
        try {

            $query = $this->em->createQuery('SELECT t
                                            FROM models\M_valores_inscripcion t
                                            ORDER BY t.id DESC');

            $valores = $query->getResult();

            return empty($valores) ? FALSE : $valores[0];
			
        } catch (Exception $e) {
            return FALSE;
        }
    }
		
}
